
package basic;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.e885.log.E885Logger;

/**
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class MySessionListener implements HttpSessionListener
{

	/**
	 * 當 session 已被載入並進行初始化, 這個 method 會被呼叫<br>
	 * 目前得知, 是呼叫 request.getSession() 時, session 會被載入並進行初始化<br>
	 * 
	 * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
	 */
	public void sessionCreated( HttpSessionEvent event )
	{
		E885Logger.testLog.debug( "execute method sessionCreated()" );
	}

	/**
	 * 當 session 已被載出, 這個 method 會被呼叫<br>
	 * 目前得知, 有下列方法 session 會被載出 <br>
	 * 1. 當我們呼叫 sessoin.invalidate()<br>
	 * 2. session 過期<br>
	 * 
	 * @see javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
	 */
	public void sessionDestroyed( HttpSessionEvent event )
	{
		E885Logger.testLog.debug( "execute method sessionDestroyed()" );
	}

}
